<?php

class Kd_Model_Collection_Default extends Kd_Model_Collection_Base {

    public function __construct() {
        parent::__construct();
    }

    public function fill(array $data) {
        foreach ($data as $row) {
            $item = new Kd_Object();
            $this->append($item->addData($row));
        }
        return $this;
    }

//    public function toJson() {
//        $values = array();
//        foreach ($this as $item) {
//            $values[$name] = $value instanceof Kd_Serialization_Interface_Json ? $value->toJson() : $value;
//        }
//
//        return Kd_Util_Json::encode($values);
//    }

}